package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BsStreetMapper;
import com.ruoyi.system.domain.BsStreet;
import com.ruoyi.system.service.IBsStreetService;

/**
 * 街道设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-11-05
 */
@Service
public class BsStreetServiceImpl implements IBsStreetService 
{
    @Autowired
    private BsStreetMapper bsStreetMapper;

    /**
     * 查询街道设置
     * 
     * @param streetId 街道设置ID
     * @return 街道设置
     */
    @Override
    public BsStreet selectBsStreetById(Long streetId)
    {
        return bsStreetMapper.selectBsStreetById(streetId);
    }

    /**
     * 查询街道设置列表
     * 
     * @param bsStreet 街道设置
     * @return 街道设置
     */
    @Override
    public List<BsStreet> selectBsStreetList(BsStreet bsStreet)
    {
        return bsStreetMapper.selectBsStreetList(bsStreet);
    }

    /**
     * 新增街道设置
     * 
     * @param bsStreet 街道设置
     * @return 结果
     */
    @Override
    public int insertBsStreet(BsStreet bsStreet)
    {
        return bsStreetMapper.insertBsStreet(bsStreet);
    }

    /**
     * 修改街道设置
     * 
     * @param bsStreet 街道设置
     * @return 结果
     */
    @Override
    public int updateBsStreet(BsStreet bsStreet)
    {
        return bsStreetMapper.updateBsStreet(bsStreet);
    }

    /**
     * 批量删除街道设置
     * 
     * @param streetIds 需要删除的街道设置ID
     * @return 结果
     */
    @Override
    public int deleteBsStreetByIds(Long[] streetIds)
    {
        return bsStreetMapper.deleteBsStreetByIds(streetIds);
    }

    /**
     * 删除街道设置信息
     * 
     * @param streetId 街道设置ID
     * @return 结果
     */
    @Override
    public int deleteBsStreetById(Long streetId)
    {
        return bsStreetMapper.deleteBsStreetById(streetId);
    }
}
